package com.example.administrator.test.login;

import com.example.administrator.test.login.bean.CodeInformationTurnBean;
import com.example.administrator.test.login.bean.MatchCodeTurnBean;
import com.example.administrator.test.login.bean.TokenMatchTurnBean;

import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;

/**
 * Created by Administrator on 2016/5/26.
 */
public interface PostRoute {
   @Headers({"Content-Type: application/json","Accept: application/json"})
   @POST("/ck")
   Call<CodeInformationTurnBean> postFlyRoute(@Body RequestBody route);


   @Headers({"Content-Type: application/json","Accept: application/json"})
   @POST("/ck")
   Call<MatchCodeTurnBean> getTurnMatchCode(@Body RequestBody route);

   @Headers({"Content-Type: application/json","Accept: application/json"})
   @POST("/ck")
   Call<TokenMatchTurnBean> getTurnToken(@Body RequestBody route);
}
